package com.synnex.mobile.servier.web.common.security;

import com.synnex.mobile.generic.web.security.AbstractGroup;
import com.synnex.mobile.servier.web.common.session.AbstractWebSession;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author Lance Chen
 */
public abstract class CommonGroup extends AbstractGroup {

    private static final long serialVersionUID = 1L;

    @Override
    public boolean request(HttpServletRequest request, HttpServletResponse response) {
        boolean pass = super.request(request, response);
//        if (pass) {
//            return pass;
//        }
//        else {
//            //if user is setting to web session
//            AbstractWebSession webSession = (AbstractWebSession) getSession(request);
//            boolean isLogin = webSession.getUser() != null;
//            return isLogin;
//        }
//        createSession(request);
        return pass;
    }
}
